/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package br.ufg.inf.pos.br.utils;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author marceloquinta
 */
public class ConnectionFactory {
    
    private static final String JDBC_DRIVER = "oracle.jdbc.OracleDriver";
    private static final String URL_DB = "jdbc:oracle:thin:@127.0.0.1:1521:XE";
    private static final String USER_DB = "root";
    private static final String PASSWORD_DB = "240489";
    
    public static Connection getConnection() throws SQLException, ClassNotFoundException             {
               
           Class.forName(JDBC_DRIVER);
     
      
       return DriverManager.getConnection(
                    URL_DB, USER_DB, PASSWORD_DB);
        
        
    }
}
